From: Florian Müllner Date: Thu, 15 Feb 2018 13:14:07 +0000 (+0100) Subject: mediaMessage: Don't try to raise player while locked X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~112^2^2~6 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=80651ea59f02da3c68a83fd7969605f8f7665d3a;p=gnome-shell.git mediaMessage: Don't try to raise player while locked We don't allow windows on the lock screen, so don't raise a player window while locked, as the result of the action would only become visible on unlock. Part-of: --- diff --git a/js/ui/messageList.js b/js/ui/messageList.js index 169168c3a..0dda98cdf 100644 --- a/js/ui/messageList.js +++ b/js/ui/messageList.js @@ -798,6 +798,9 @@ class MediaMessage extends Message { } vfunc_clicked() { + if (Main.sessionMode.isLocked) + return; + this._player.raise(); Main.panel.closeCalendar(); }